class CreateCollsMembers < ActiveRecord::Migration
  def self.up
    create_table :collsmembers do |t|
      t.column :coll_id, :integer, :null => false
      t.column :user_id, :integer, :null => false
      t.column :role_id, :integer, :null => false
      t.column :joined_at, :datetime, :null => false
      t.column :leaved_at, :datetime, :null => false
    end
  end

  def self.down
    drop_table :collsmembers
  end
end
